stack algorithm

visit shbcf.ru